package com.jmp.api.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author cjr
 */
@Data
@Builder
public class IndexSubjectResponse {

    @ApiModelProperty(value = "专题", dataType = "IndexSubjectResponse.Banner")
    private List<Banner> subjectList;

    @Data
    @Builder
    @ApiModel("IndexSubjectResponse.Banner")
    public static class Banner {
        @ApiModelProperty("ID")
        private Integer bannerId;
        @ApiModelProperty("图片地址")
        private String source;
        @ApiModelProperty("点击事件：0 无 1 商品详情 2h5 3企业 4商品列表 5专题页 6奖券入口")
        private Integer event;
        @ApiModelProperty("点击事件参数")
        private String eventId;
        @ApiModelProperty("描述")
        private String memo;
        @ApiModelProperty("宽高比: 宽/高")
        private BigDecimal sizeRate;
    }
}
